<?php
/**
{
    "feeId": "INT //ID",
    "title": "VARCHAR //标题@search",
    "price": "FLOAT //价格",
    "days": "INT //天数",
    "status": "TINYINT //状态@status::3::正常::@admin; 88::删除::@admin; ",
    "created": "DATETIME //日期"
}
 */

class Fee extends Base
{
    
	public $feeId= '';//ID
	public $title= NULL;//标题@search
	public $price= '';//价格
	public $days= '';//天数
	public $status= "3";//状态@status::3::正常::@admin;88::删除::@admin;
	public $created= 'CURRENT_TIMESTAMP';//日期

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_fee';
    }
    
    public  function key(){
        return 'feeId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'Fee';
    }
    
    public  function field()
    {
        return array (  'feeId' =>   array (    0 => 'INT',    1 => 11,    2 => 'ID',  ),  'title' =>   array (    0 => 'VARCHAR',    1 => 255,    2 => '标题@search',  ),  'price' =>   array (    0 => 'FLOAT',    1 => 0,    2 => '价格',  ),  'days' =>   array (    0 => 'INT',    1 => 11,    2 => '天数',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status::3::正常::@admin;88::删除::@admin;',  ),  'created' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '日期',  ),);
    }


}